const express = require('express');
const router = express.Router();
const auth = require('../middlewares/authMiddleware');
const systemMessageController = require('../controllers/systemMessageController');

// 获取系统通知列表
router.get('/list', auth.protect, systemMessageController.getSystemMessages);
// 标记为已读
router.post('/read/:id', auth.protect, systemMessageController.markAsRead);

module.exports = router;
